//
//  YuYueCustomView.h
//  FD
//
//  Created by xiaofang wang on 2018/11/9.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@class YuYueCustomView, WSSureOrderFooterView;
@class AvaliableCouponModel;


@protocol YuYueCustomViewDelegate <NSObject>
/**2.点击了可用优惠券*/
- (void)clickAvaliableCouponWithArr:(NSArray *)couponListArr;

/**
 3.点击了计算按钮,发送网络请求,回调请求结果 */
- (void)clickJieSuanResult:(BOOL)result;
@end

@interface YuYueCustomView : UIView
/**代理对象*/
@property (nonatomic, weak) id <YuYueCustomViewDelegate> delegate;

/**1.请求参品信息数据*/
- (void)requestData;
/**2.请求预约店铺详情数据*/
- (void)requestYuYueShopDetailMsgWithYuYueId:(NSNumber *)yuyueId;

/**3.
 提供一个接口更新可有优惠券金额 可用优惠券

 @param couponModel AvaliableCouponModel
 */
- (void)updateAvaliableCoupon:(AvaliableCouponModel *)couponModel;
/**
 */

@end

NS_ASSUME_NONNULL_END


//!!!!: 01 预约点餐信息 /user/shop_reservation/detail
/**
 {"event":"SUCCESS","data":{"number":1011,"consignee":"短发短发","shop":{"address":"Edenhall, Model Farm Rd, Cork, Ireland","name":"Edenhall","id":1},"phone":"12326351251312","peopleNumber":1,"createTime":1541745975000,"sex":1,"id":58,"diningTime":1541745960000,"status":0},"describe":""}
 */



//!!!!:02 订单预览接口数据 数据有变化
/**
 {"event":"SUCCESS","data":{"userCartList":[{"quantity":1,"goods":{"original_price":23.00,"thumbnail":"public/a8d365eb1f50432cbf2d3497869a44a3","discount_price":23.00,"setMeal":[],"discount":0,"id":16,"title":"十三鲜小龙虾鸡肉卷"},"id":811},{"quantity":1,"goods":{"original_price":35.00,"thumbnail":"public/b8ee32c0bd484f22ada8532c0766e796","discount_price":35.00,"setMeal":[],"discount":1,"id":15,"title":"小龙虾卷葡挞饮品餐"},"id":812}],"userCouponList":[],"orderTotalPrice":58.00,"freightPrice":6.0},"describe":""}
 */

//11-23 http://catering.api.dev.51zhiyuan.net/user/order/preview
/**
 {"event":"SUCCESS","data":{"userCartList":[{"quantity":5,"goods":{"originalPrice":0.00,"ingredientClassify":[{"name":"No","ingredientList":[{"originalPrice":0.00,"name":"Carrots","currentPrice":0.00,"id":39},{"originalPrice":0.00,"name":"Onion","currentPrice":0.00,"id":38}],"id":6},{"name":"Main","ingredientList":[{"originalPrice":9.00,"name":"Vegetable","currentPrice":9.00,"id":47}],"id":8}],"currentPrice":0.00,"id":66,"title":"yaki soba"},"remark":"","id":223}],"userCouponList":[]},"describe":""}
 */
